package com.desire.redis;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.ValueOperations;

import javax.annotation.Resource;

@SpringBootTest
public class Redis_ShowLog {
    @Resource(name = "redisTemplate")
    private ValueOperations<String, String> valueOperations;

    @Test
    void ShowLog() {
        String value = "";
        for (int i = 0; i < 100000; i++) {
            value = value + i;
        }
        valueOperations.set("k", value);
        String k = valueOperations.get("k");
        System.out.println(k);

    }
}
